package fr.insta.webview.factory;

import fr.insta.webview.object.IWebObject;

/**
 * <p>Abstract WebObjectFactory class.</p>
 *
 * @author Maarek
 * @version $Id: $Id
 */
public abstract class WebObjectFactory
{
	/**
	 * <p>createNewWebObject.</p>
	 *
	 * @param title a {@link java.lang.String} object.
	 * @param url a {@link java.lang.String} object.
	 * @return a {@link fr.insta.webview.object.IWebObject} object.
	 */
	public abstract IWebObject createNewWebObject(String title, String url);

	/**
	 * <p>getBookmarkFactory.</p>
	 *
	 * @return a {@link fr.insta.webview.factory.BookmarkFactory} object.
	 */
	public static BookmarkFactory getBookmarkFactory()
	{
		return new BookmarkFactory();
	}

	/**
	 * <p>getHistoryFactory.</p>
	 *
	 * @return a {@link fr.insta.webview.factory.HistoryFactory} object.
	 */
	public static HistoryFactory getHistoryFactory()
	{
		return new HistoryFactory();
	}

}
